﻿using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using Google.Protobuf;
using Google.Protobuf.Reflection;

namespace EggLink.DanhengServer.Proto
{
	// Token: 0x02000D57 RID: 3415
	[DebuggerDisplay("{ToString(),nq}")]
	public sealed class PrestigeLevelUpScRsp : IMessage<PrestigeLevelUpScRsp>, IMessage, IEquatable<PrestigeLevelUpScRsp>, IDeepCloneable<PrestigeLevelUpScRsp>, IBufferMessage
	{
		// Token: 0x17002B54 RID: 11092
		// (get) Token: 0x06009946 RID: 39238 RVA: 0x001996D0 File Offset: 0x001978D0
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageParser<PrestigeLevelUpScRsp> Parser
		{
			get
			{
				return PrestigeLevelUpScRsp._parser;
			}
		}

		// Token: 0x17002B55 RID: 11093
		// (get) Token: 0x06009947 RID: 39239 RVA: 0x001996D7 File Offset: 0x001978D7
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageDescriptor Descriptor
		{
			get
			{
				return PrestigeLevelUpScRspReflection.Descriptor.MessageTypes[0];
			}
		}

		// Token: 0x17002B56 RID: 11094
		// (get) Token: 0x06009948 RID: 39240 RVA: 0x001996E9 File Offset: 0x001978E9
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		MessageDescriptor IMessage.Descriptor
		{
			get
			{
				return PrestigeLevelUpScRsp.Descriptor;
			}
		}

		// Token: 0x06009949 RID: 39241 RVA: 0x001996F0 File Offset: 0x001978F0
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public PrestigeLevelUpScRsp()
		{
		}

		// Token: 0x0600994A RID: 39242 RVA: 0x001996F8 File Offset: 0x001978F8
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public PrestigeLevelUpScRsp(PrestigeLevelUpScRsp other) : this()
		{
			this.retcode_ = other.retcode_;
			this.level_ = other.level_;
			this._unknownFields = UnknownFieldSet.Clone(other._unknownFields);
		}

		// Token: 0x0600994B RID: 39243 RVA: 0x00199729 File Offset: 0x00197929
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public PrestigeLevelUpScRsp Clone()
		{
			return new PrestigeLevelUpScRsp(this);
		}

		// Token: 0x17002B57 RID: 11095
		// (get) Token: 0x0600994C RID: 39244 RVA: 0x00199731 File Offset: 0x00197931
		// (set) Token: 0x0600994D RID: 39245 RVA: 0x00199739 File Offset: 0x00197939
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint Retcode
		{
			get
			{
				return this.retcode_;
			}
			set
			{
				this.retcode_ = value;
			}
		}

		// Token: 0x17002B58 RID: 11096
		// (get) Token: 0x0600994E RID: 39246 RVA: 0x00199742 File Offset: 0x00197942
		// (set) Token: 0x0600994F RID: 39247 RVA: 0x0019974A File Offset: 0x0019794A
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint Level
		{
			get
			{
				return this.level_;
			}
			set
			{
				this.level_ = value;
			}
		}

		// Token: 0x06009950 RID: 39248 RVA: 0x00199753 File Offset: 0x00197953
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override bool Equals(object other)
		{
			return this.Equals(other as PrestigeLevelUpScRsp);
		}

		// Token: 0x06009951 RID: 39249 RVA: 0x00199761 File Offset: 0x00197961
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool Equals(PrestigeLevelUpScRsp other)
		{
			return other != null && (other == this || (this.Retcode == other.Retcode && this.Level == other.Level && object.Equals(this._unknownFields, other._unknownFields)));
		}

		// Token: 0x06009952 RID: 39250 RVA: 0x001997A0 File Offset: 0x001979A0
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override int GetHashCode()
		{
			int num = 1;
			if (this.Retcode != 0U)
			{
				num ^= this.Retcode.GetHashCode();
			}
			if (this.Level != 0U)
			{
				num ^= this.Level.GetHashCode();
			}
			if (this._unknownFields != null)
			{
				num ^= this._unknownFields.GetHashCode();
			}
			return num;
		}

		// Token: 0x06009953 RID: 39251 RVA: 0x001997F8 File Offset: 0x001979F8
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override string ToString()
		{
			return JsonFormatter.ToDiagnosticString(this);
		}

		// Token: 0x06009954 RID: 39252 RVA: 0x00199800 File Offset: 0x00197A00
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void WriteTo(CodedOutputStream output)
		{
			output.WriteRawMessage(this);
		}

		// Token: 0x06009955 RID: 39253 RVA: 0x0019980C File Offset: 0x00197A0C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalWriteTo(ref WriteContext output)
		{
			if (this.Level != 0U)
			{
				output.WriteRawTag(16);
				output.WriteUInt32(this.Level);
			}
			if (this.Retcode != 0U)
			{
				output.WriteRawTag(48);
				output.WriteUInt32(this.Retcode);
			}
			if (this._unknownFields != null)
			{
				this._unknownFields.WriteTo(ref output);
			}
		}

		// Token: 0x06009956 RID: 39254 RVA: 0x00199868 File Offset: 0x00197A68
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public int CalculateSize()
		{
			int num = 0;
			if (this.Retcode != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.Retcode);
			}
			if (this.Level != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.Level);
			}
			if (this._unknownFields != null)
			{
				num += this._unknownFields.CalculateSize();
			}
			return num;
		}

		// Token: 0x06009957 RID: 39255 RVA: 0x001998C0 File Offset: 0x00197AC0
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(PrestigeLevelUpScRsp other)
		{
			if (other == null)
			{
				return;
			}
			if (other.Retcode != 0U)
			{
				this.Retcode = other.Retcode;
			}
			if (other.Level != 0U)
			{
				this.Level = other.Level;
			}
			this._unknownFields = UnknownFieldSet.MergeFrom(this._unknownFields, other._unknownFields);
		}

		// Token: 0x06009958 RID: 39256 RVA: 0x00199910 File Offset: 0x00197B10
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(CodedInputStream input)
		{
			input.ReadRawMessage(this);
		}

		// Token: 0x06009959 RID: 39257 RVA: 0x0019991C File Offset: 0x00197B1C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalMergeFrom(ref ParseContext input)
		{
			uint num;
			while ((num = input.ReadTag()) != 0U)
			{
				if (num != 16U)
				{
					if (num != 48U)
					{
						this._unknownFields = UnknownFieldSet.MergeFieldFrom(this._unknownFields, ref input);
					}
					else
					{
						this.Retcode = input.ReadUInt32();
					}
				}
				else
				{
					this.Level = input.ReadUInt32();
				}
			}
		}

		// Token: 0x04003AF7 RID: 15095
		private static readonly MessageParser<PrestigeLevelUpScRsp> _parser = new MessageParser<PrestigeLevelUpScRsp>(() => new PrestigeLevelUpScRsp());

		// Token: 0x04003AF8 RID: 15096
		private UnknownFieldSet _unknownFields;

		// Token: 0x04003AF9 RID: 15097
		public const int RetcodeFieldNumber = 6;

		// Token: 0x04003AFA RID: 15098
		private uint retcode_;

		// Token: 0x04003AFB RID: 15099
		public const int LevelFieldNumber = 2;

		// Token: 0x04003AFC RID: 15100
		private uint level_;
	}
}
